<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%-- Add portlet taglibs to jsp --%>
<%@ page import="javax.portlet.*"%>
<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
<%-- 
<%@ taglib uri="/WEB-INF/menu.tld" prefix="tag"--%>
<%@ taglib tagdir="/WEB-INF/tags" prefix="tag" %>

<portlet:defineObjects />

<script type="text/javascript" src='/${requestScope.contextPath}/scripts/common.js'></script>

<form name="<portlet:namespace/>add" action="<portlet:actionURL/>"  method="POST" enctype="multipart/form-data">
<input type="hidden" name="screenId" value="Add" />
<input type="hidden" name="eventId" value="default" />
<table>
  <tr><td colspan="2">
    <input type="button" name="home" value="Home" onclick='submitAction("<portlet:namespace/>","add","back");' />
  </td></tr>
  <tr>
    <td> Left menu:</br>
    <tag:menu formName="add" menuList="${requestScope.menuList}"></tag:menu>
    </td>
    <td>Add</b> <br />

    First name: <input name="firstName"
      value="${requestScope.addForm.firstName}"> <br />
    Last name: <input name="lastName"
      value="${requestScope.addForm.lastName}"> <br />
    Picture: <input type="FILE" name="picture" /><br />
    <input type="button" name="save" value="Save" onclick='submitAction("<portlet:namespace/>","add","save");' /></td>
  </tr>
</table>
</form>